package com.zijin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zijin.entity.Person8Account2;
import com.zijin.mapper.Person8Account2Mapper;
import com.zijin.service.Person8Account2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 8人2级账户信息Service实现
 * */
@Service
public class Person8Account2ServiceImpl extends ServiceImpl<Person8Account2Mapper, Person8Account2> implements Person8Account2Service {

    @Autowired
    private Person8Account2Mapper person8Account2Mapper;
    /**
     * 根据卡号查找账户信息
     * */
    @Override
    public List<Person8Account2> findAccountByBankNo(String tradeBankNo) {
        LambdaQueryWrapper<Person8Account2> queryWrapper = Wrappers.<Person8Account2>lambdaQuery();
        queryWrapper.eq(Person8Account2::getTradeBankNo, tradeBankNo);
        List<Person8Account2> person8Account2 = person8Account2Mapper.selectList(queryWrapper);
        return person8Account2;
    }
}